FROM alpine-jdk8

WORKDIR /data

ENV LANG=C.UTF-8
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
    apk add --no-cache openssh

ADD takin-cloud-app.jar ./apps/takin-cloud/
ADD config ./apps/takin-cloud/config
ADD plugins ./apps/takin-cloud/plugins
ADD engine ./apps/takin-cloud/engine
ADD pradar-upload-client ./apps/takin-cloud/pradar-upload-client
RUN apk add sudo zip
ENV isLocal=true
ENV POD_NUMBER="1"
COPY entrypoint.sh /entrypoint.sh
ADD id_rsa /root/.ssh/id_rsa
ENV MEMORY=512M

ENTRYPOINT ["sh","/entrypoint.sh"]

EXPOSE 10010
